import request from './request'

// 根据日日保保司信息
export function getdayHojiapi(data: any) {
    return request.get('/api/v1/crm/product-deal/query-insurance-company', data)
}
// 根据长期保保司信息
export function getlongHojiapi() {
    return request.get('/api/v1/crm/product-deal/query-period-insurance-company')
}

// 根据产品类型获取某销售下对应客户
export function getcompanyapi(data: any) {
    return request.get('/api/v1/crm/product-deal/get-sales-dealInfo', data)
}

// 获取长期保保司下方案
export function getlongplanapi(data: any) {
    return request.get('/api/v1/crm/product-deal/query-period-company-solution', data)
}

// 获取长期保保派遣单位信息
export function getlongdispatchingAgencyapi(data: any) {
    return request.get('/api/v1/crm/product-deal/period-serve-company', data)
}

// 根据公司查询日保派遣单位信息
export function getdaydispatchingAgencyapi(data: any) {
    return request.get('/api/v1/crm/product-deal/get-wesure-server-company', data)
}

// 获取长期保在保人员信息
export function getlonginsurepeopleapi(data: any) {
    return request.get('/api/v1/crm/product-deal/query-period-staff', data)
}

// 获取日保投保记录列表
export function getdayinsurepeopleapi(data: any) {
    return request.get('/api/v1/crm/product-deal/query-daily-stuff', data)
}

// 生成日保在保证明excel
export function getdayinsureexcelapi(data: any) {
    return request.post('/api/v1/crm/product-deal/gen-daily-insure-Excel', data)
}

// 生成长期保在保证明excel
export function getlonginsureexcelapi(data: any) {
    return request.post('/api/v1/crm/product-deal/gen-period-insure-Excel', data)
}
export function getlonginsureexcelapi1(data: any) {
    return request.post('/api/v1/gen-period-insure-pdf', data)
}
export function getinsurperiodoccupationlevelapi() {
    return request.get('/api/v1/crm/sales/type/insur_period_occupation_level')
}